package com.ruoyi.module.domain;

import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import lombok.Data;
import lombok.EqualsAndHashCode;
import org.apache.commons.lang3.builder.ToStringBuilder;
import org.apache.commons.lang3.builder.ToStringStyle;
import com.ruoyi.common.annotation.Excel;
import com.ruoyi.common.core.domain.BaseEntity;

import java.util.List;

/**
 * 考试分数对象 fu_exam_fraction
 *
 * @author fubojin
 * @date 2025-03-05
 */
@Data
@ApiModel(value = "考试分数")
@EqualsAndHashCode(callSuper = true)
public class ExamFraction extends BaseEntity {
    private static final long serialVersionUID = 1L;

    /**
     * 主键
     */
    @ApiModelProperty(value = "主键")
    private Long id;

    /**
     * 用户ID
     */
    @Excel(name = "用户ID")
    @ApiModelProperty(value = "用户ID")
    private Long userId;

    /**
     * 类型（1-初级考试，2-高级考试）
     */
    @Excel(name = "类型", readConverterExp = "1=-初级考试，2-高级考试")
    @ApiModelProperty(value = "类型（1-初级考试，2-高级考试）")
    private Integer type;

    /**
     * 分数
     */
    @Excel(name = "分数")
    @ApiModelProperty(value = "分数")
    private Double fraction;

    /**
     * 试卷标题
     */
    @Excel(name = "试卷标题")
    @ApiModelProperty(value = "试卷标题")
    private String title;


    /**
     * 错题记录
     */
    @Excel(name = "错题记录")
    @ApiModelProperty(value = "错题记录")
    private List<ExamWrong> examWrongList;


}
